package wiki.hitime.demo.test.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author zhangdaoping
 * @create 2019-10-30 17:10
 */
@Getter
@AllArgsConstructor
public enum OrderTypeEnum {

    //
    NORMAL(0, "正常"),
    FAST(9, "快审");

    private int status;
    private String msg;

    public static OrderTypeEnum getEnumByStatus(Integer status) {
        for (OrderTypeEnum value : OrderTypeEnum.values()) {
            if (value.getStatus() == status) {
                return value;
            }
        }
        return null;
    }

}
